package com.a01_2021.thousandstimes.instance.service;

import com.a01_2021.thousandstimes.exception.CustomException;
import com.a01_2021.thousandstimes.instance.entity.Dimission;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author E1xP
 * @since 2021-03-10
 */
public interface IDimissionService extends IService<Dimission> {

    Dimission dimission(long userId, String reason) throws CustomException;

    boolean isDimission(long userId) throws CustomException;

    List<Dimission> getUnHandle();

    Dimission agree(long dimissionId, long instanceId) throws CustomException;

    Dimission disagree(long dimissionId) throws CustomException;

    List<Dimission> getMyDimission(long userId);
}
